<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="https://cdn.jsdelivr.net/npm/vue@2.6.10/dist/vue.js"></script>
  </head>
    <title>Document</title>
</head>
<body>
    <div id="app">
        <!-- 双大括号{{}}只能用在模板标签内容，不能作为属性值插入
        如果在某个模板里面需要用到差值语法，需要对这个属性使用v-boind指令（强行绑定） -->
        <h1>{{msg}}</h1>
        <img v-bind:src="imgSrc" width="500" alt="">
        <img v-bind:src="imgSrc" v-bind:width="imgWidth" alt="">

    </div>
    <script>
        const vm = new Vue({
            el:"#app",
            data(){
                return{
                    msg:"I love you ",
                    imgSrc:"https://img1.baidu.com/it/u=335274140,1041140144&fm=253&fmt=auto&app=138&f=JPEG?w=889&h=500",
                    imgWidth:500,
                }
            }
        })
    </script>
</body>
</html>